package com.medical.medical.mapper;

import com.medical.medical.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
         * @authorDesc 对酒当歌，人生几何！
         * @author WangLuDong
         * @date 2022-09-14 09:18:50
         * @version 1.0.0
         * @description 接口描述 科室-数据访问层
        */
@Mapper
public interface DepartmentMapper {

    /**
     * WLD
     * 查询所有科室
     * @return
     */
    List<Department> getDepartmentList();

     /**
      *@author WangLuDong
      *@Description 方法描述 根据科室名称查询科室信息
      *@Date 2022-09-15 20:33:55
       * @param departmentName
      *@Return {@link null}
      */
    Department getDepartmentByDepartmentName(String departmentName);

    int addDepartment(Department department);

    int deleteDepartment(int departmentId);
}
